package com.wh.usercenter3.exception;

import com.wh.usercenter3.constant.CodeConstant;
import lombok.Getter;

/**
 * 自定义异常类
 */
@Getter
public class BaseException extends RuntimeException {

    private final CodeConstant constant;
    private String detail;

    public BaseException(CodeConstant constant,String detail) {
        super(constant.getMessage());
        this.constant=constant;
        this.detail=detail;
    }
}
